









package com.company.wfangwenzhe.section5;

/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 * ��һ����λ��˭����Ա�����¹����ǲ��ž�����С��
 */
public abstract class Employee {
	public final static int MALE = 0;  
	public final static int FEMALE = 1; 
	
	private String name;
	
	
	private int salary;
	
	
	private int sex;

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSalary() {
		return salary;
	}

	public void setSalary(int salary) {
		this.salary = salary;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}
	
	
	public abstract void accept(IVisitor visitor);
}